#include<iostream>
#include<string.h>
using namespace std;
int main()
{
	char str[100];
	int numchar = 0, numspa = 0, numnum = 0, numoth = 0;
	fgets(str, sizeof(str), stdin);
	for (int i = 0;str[i] != '\0';i++)
	{
		if (str[i] >= 48 && str[i] <= 57)
			numnum++;
		else if ((str[i] >= 65 && str[i] <= 90) || (str[i] >= 97 && str[i] <= 122))
			numchar++;
		else if (str[i] == ' ')
			numspa++;
		else
			numoth++;
	}
	numoth -= 1;
	cout << "characters=" << numchar << endl;
	cout << "spaces=" << numspa << endl;
	cout << "numbers=" << numnum << endl;
	cout << "others=" << numoth << endl;
	return 0;
}
#include <iostream>
#include <stdexcept>
class Rectangle {
private:
    double x1, y1; 
    double x2, y2; 
public:
    Rectangle(double bl_x, double bl_y, double tr_x, double tr_y) {
        x1 = bl_x; y1 = bl_y;
        x2 = tr_x; y2 = tr_y;
    }
    double area() const {
        return (x2 - x1) * (y2 - y1);
    }
};
int main() {
    Rectangle rect(0, 0, 3, 3);
    std::cout << "The area is: " << rect.area() << std::endl;
    return 0;
}
#include<iostream>
#include<string>
using namespace std;
class Student {
public:
	Student(const string& Name, int Age) :name(Name), age(Age) {
		cout << "constructor is called." << endl;
	}
	void pring();
private:
	string name;
	int age;
};
void Student::pring()
{
	cout << "name is " << name << "," << " age is " << age<<"." << endl;
}
int main()
{
	string a;
	int b;
	cin >> a >> b;
	Student s1(a, b);
	s1.pring();
	return 0;
}